-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: #18 RaygunErrorBoundary tests #53
Conversation
@@ -10,7 +10,7 @@ namespace Raygun.Blazor.Models | |||
/// This exists because we need to parse some stuff from the browser to construct a proper <see cref="EnvironmentDetails" /> | |||
/// instance. Also the <see cref="EnvironmentDetails" /> is a hot mess of JavaScript serialization inconsistency. | |||
/// </remarks> | |||
internal record BrowserSpecs | |||
public record BrowserSpecs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made public so it is accessible from the Raygun.Tests.Blazor.Server
project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the need to do that, but it kind of breaks encapsulation a bit for the same of the code being ore testable. I think that's a choice that can be made consciously, but are there other ways to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it, see 45d0423
(#53)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test: #18
RaygunErrorBoundary
testsDescription 📝
RaygunErrorBoundary
RaygunErrorBoundary
tests #18Type of change
Updates
Raygun.Tests.Blazor.Server
.Raygun.Tests.Blazor.WebAssembly
(project was empty, could be added again if necessary)TestComponent
that throws an exception when a button is clicked. This component is wrapped by theRaygunErrorBoundary
.TestComponent
, which throws an exception and gets captured, the tests verify that the http mock client has captured the exception. Testing the solution end-to-end.Test plan 🧪
Author to check 👓
Reviewer to check ✔️